/*
 * Project Name:hbm-be.
 * File Name:CsRpRecodesServiceImpl.java
 * Package Name:com.hginfo.hbm.be.service.impl.cs
 * Date:2018年05月06日 下午11:14:09
 * Copyright (c) 2016, hongguaninfo.com All Rights Reserved.
 *
 */
package cn.uce.sms.srv.biz.impl;

import cn.uce.sms.api.service.biz.ICsRpRecodesBiz;
import cn.uce.sms.entity.CsRpRecodes;
import cn.uce.sms.srv.service.CsRpRecodesService;
import cn.uce.sms.vo.CsRpRecodesVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 奖惩记录表: cs_rp_recodes. <br />
 * service impl 层 <br />
 * Date: 2018年05月06日 下午11:14:09 <br />
 *
 * @author chenqinglong
 * @since V1.0.0
 */
@Service
@Transactional(readOnly = true, propagation= Propagation.SUPPORTS, rollbackFor = Exception.class)
public class CsRpRecodesBiz implements ICsRpRecodesBiz {

    @Resource
    private CsRpRecodesService csRpRecodesService;

    @Override
    public void add(CsRpRecodes entity) {
        //ignore
    }

    @Override
    public void update(CsRpRecodes entity) {
        //ignore
    }

    @Override
    public void delete(Long id) {
        //ignore
    }

    /**
     * 统计本月本月预计奖励金额。
     * @param registerType dataType
     */
    @Override
    public int getExpectedReward (Integer registerType,Integer dataType){
        CsRpRecodesVo filter = new CsRpRecodesVo();
        filter.setRegisterType(registerType);
        filter.setDataType(dataType);
        return csRpRecodesService.getExpectedReward(filter);
    }
    /**
     * 统计本月本月预计罚款金额。
     * @param registerType dataType
     */
    @Override
    public int getExpectedFines (Integer registerType,Integer dataType){
        CsRpRecodesVo filter = new CsRpRecodesVo();
        filter.setRegisterType(registerType);
        filter.setDataType(dataType);
        return csRpRecodesService.getExpectedFines(filter);
    }
}
